<link rel="stylesheet" type="text/css" href="./public/css/homePage/head.css" />
<div id="header">
	<div class="topNav">
		<div class="center">
			<ul class="left">
				<li>欢迎来到OPPO!</li>
				<li>
					<!--audio autoplay loop controls="controls" style="width:45px;height:28px;"-->
						<source src="./public/music/backMusic.mp3" type="audio/mpeg">
						<source src="./public/music/backMusic.ogg" type="audio/ogg">
						<source src="./public/music/backMusic.wav" type="audio/wav">
					</audio>
				</li>
				<?php
					if(isset($_SESSION['userInfo']) && $_SESSION['userInfo']){
					 echo '<li>欢迎您,<b style="color:#e50150">'.$_SESSION['userInfo']['uname'].'</b></li>
						   <a href="./index.php?c=user&a=loginout"><li>[退出]</li></a>';
					}else{
					 echo '<a href="./index.php?c=user&a=login"><li>请登录</li></a>
						   <a href="./index.php?c=user&a=regin"><li>快速注册</li></a>';
					}
				?>
				
			</ul>
			<ul class="right">
				<a href=""><li>更多</li></a>
				<li>&nbsp;|&nbsp;</li>
				<a href=""><li>口碑中心</li></a>
				<a class="hot" href=""><li>手机OPPO</li></a>
				<li>&nbsp;|&nbsp;</li>
				<li class='myjm'><a class='tit' href="./index.php?c=meinfo&a=index">我的OPPO</a>
					<ul>
						<a href="./index.php?c=meinfo&a=userdd"><li class='me'>我的订单</li></a>
						<a href="./index.php?c=meinfo&a=index"><li class='me'>个人中心</li></a>
					</ul>
				</li>
				<a href=""><li>收藏的品牌</li></a>
				<a href="./index.php?c=meinfo&a=userdd"><li>订单查询</li></a>
				<a href=""><li>正品保证</li></a>
			</ul>
		</div>
	</div>
	<div class="meddle">
		<img src="./public/images/logo.jpg">
		<form>
			<input class="input" type="text" name="search" value=""/>
			<input class="button" type="submit" value="搜索"/>
			<div class="clear"></div>
			
		</form>
		<a class="shopping" href="">去购物车结算 &nbsp; </a>
	</div>
	<div class="nav">
		<div class="center">
			<ul>
				<a href='./index.php'><li style="background:#e50150" class='m1'>首页</li></a>
				<?php
					$_GET['tblname'] = 'shop_type';
					$_GET['pk'] = 'tid';
					$condition = ' WHERE pid=0 ';
					$menu_1 = select($condition);
					$i=0;
					foreach($menu_1 as $k=>$v){
						if($i++ > 8){break;}
						if($v['tname']=='首页推荐'){continue;}
						echo "<a href='./index.php?c=goods&a=index&tid=$v[tid]'><li class='m1'>$v[tname]";
							$condition = " WHERE pid=$v[tid] ";
							if($menu_2 = select($condition)){
								echo '<ul>';
								foreach($menu_2 as $kk=>$vv){
									echo "<a href='./index.php?c=goods&a=index&tid=$vv[tid]'><li>$vv[tname]</li></a>";
								}
								echo '</ul>';
							}
						echo "</li></a>";
					}
				?>
			</ul>
		</div>
	</div>
</div>